<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>layui表单生成器</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/build.css?v=1">
</head>
<body class="layout-page">
<div class="layui-row layui-col-space20">
    <div class="layui-col-md2">
        <div class="layui-card">
            <div class="layui-card-header card-header">
                <span><i class="fa fa-bars"></i> 拖拽到构建面板中即可生成表单块</span>
            </div>
            <div class="layui-card-body">
                <div class="layui-form element-panel layui-form-pane">
                    <div class="layui-form-item" id="select">
                        <label class="layui-form-label">输入框</label>
                    </div>
                    <div class="layui-form-item" id="password">
                        <label class="layui-form-label">密码框</label>
                    </div>
                    <div class="layui-form-item" id="option">
                        <label class="layui-form-label">选择框</label>
                    </div>
                    <div class="layui-form-item" id="upload">
                        <label class="layui-form-label">上传文件</label>
                    </div>
                    <div class="layui-form-item" id="date">
                        <label class="layui-form-label">时间选择</label>
                    </div>
                    <div class="layui-form-item" id="checkbox">
                        <label class="layui-form-label">复选框</label>
                    </div>
                    <div class="layui-form-item" id="switch">
                        <label class="layui-form-label">开关</label>
                    </div>

                    <div class="layui-form-item" id="radio">
                        <label class="layui-form-label">单选框</label>
                    </div>
                    <div class="layui-form-item layui-form-text" id="textarea">
                        <label class="layui-form-label">文本域</label>
                    </div>
                    <div class="layui-form-item"  id="button">
                        <div class="layui-input-block"style="margin-left: 0px;">
                            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
                            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-col-md7">
        <div class="layui-card build-card">
            <div class="layui-card-header card-header">
                <span><i class="fa fa-bars"></i> 构建面板</span>
                <button class="layui-btn layui-btn-primary layui-btn-sm build-generate">生成HTML</button>
            </div>
            <div class="layui-card-body layui-form build-panel layui-form-pane" id="html-body"></div>
        </div>
    </div>
    <div class="layui-col-md3">
        <div class="layui-card build-card">
            <div class="layui-card-header card-header">
                <span><i class="fa fa-bars"></i> 属性面板</span>
            </div>
            <div class="layui-card-body" id="html-value">
                <div class="layui-form element-panel layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label">标识</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" autocomplete="off" placeholder="请输入字段标识" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">表单类型</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" readonly value="" autocomplete="off" placeholder="请输入标题" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">placeholder</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" autocomplete="off" placeholder="请输入placeholder" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/build.js"></script>
</body>
</html>
